package com.java98k.admin.controller;


import com.java98k.admin.bean.Admin;
import com.java98k.admin.service.impl.AdminServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class AdminController {

    @Resource
    private AdminServiceImpl adminService;
    @GetMapping(value = "test")
    public String test() {
        return "test";
    }

    @GetMapping(value = "login")
    public Admin login(String account, String password) {
        return adminService.login(account);
    }
}
